import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Lost from '../views/Lost.vue'
import Post from '../views/Post.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/post',
    name: 'Post',
    component: Post
  },
  {
    path: '/lost',
    name: 'Lost',
    component: Lost
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../views/About.vue')
  },
  {
    path: '/SearchResult',
    name: 'SearchResult',
    component: () => import('../views/SearchResult')
  },
  {
    path: '/menu',
    name: 'Menun',
    component: () => import('../views/Menu')
  }
]

const router = new VueRouter({
  routes
})

export default router
